package com.ruoyi.hotel.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @BelongsProject: ruoyi
 * @BelongsPackage: com.ruoyi.system.domain.po
 * @Author: lbw
 * @CreateTime: 2025-06-20  11:28
 * @Description: TODO
 */

@Data
@TableName("room")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Room  {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @DateTimeFormat()
    private LocalDateTime createTime;

    @TableField(value = "create_code", fill = FieldFill.INSERT)
    private String createCode;

    @TableField(value = "create_name", fill = FieldFill.INSERT)
    private String createName;

    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    @DateTimeFormat()
    private LocalDateTime updateTime;

    @TableField(value = "update_code", fill = FieldFill.UPDATE)
    private String updateCode;

    @TableField(value = "update_name", fill = FieldFill.UPDATE)
    private String updateName;

    @TableId(value = "home_id")
    private Long homeId;

    @TableField("del_flag")
    @TableLogic
    private Integer delFlag;

    @TableField(value = "room_code")
    private String roomCode;

    @TableField(value = "room_name")
    private String roomName;

    // 房间状态
    @TableField(value = "room_status")
    private String roomStatus;

    // 房间状态
    @TableField(value = "floor")
    private Integer floor;


    //预订状态
    @TableField(value = "booking_status")
    private String bookingStatus;

    ////预订时间
    @TableField(value = "booking_time")
    private LocalDateTime bookingTime;

    // 照片
    @TableField(value = "photo")
    private String photo;

    @TableField(value = "remark")
    private String remark;
}